package com.nfc.lock.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nfc.lock.entity.WarningRecord;

/**
 * 预警记录Service接口
 */
public interface IWarningRecordService extends IService<WarningRecord> {

    /**
     * 分页查询预警记录
     */
    IPage<WarningRecord> getWarningList(Integer pageNum, Integer pageSize, Integer warningType,
                                        Integer status, Long lockId);

    /**
     * 处理预警
     */
    void handleWarning(Long warningId, String handleRemark);

    /**
     * 创建预警记录
     */
    void createWarning(WarningRecord warningRecord);
}
